package com.ct.system.responsity.admin.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ct.repository.commons.BaseServiceImpl;
import com.ct.system.mapper.AdminSystemMapper;
import com.ct.system.orm.AdminSystem;
import com.ct.system.responsity.admin.IAdminSystemRepository;
import org.springframework.stereotype.Repository;

/**
 * 系统
 *
 * @author system
 */
@Repository
public class AdminSystemRepository extends BaseServiceImpl<AdminSystemMapper, AdminSystem> implements IAdminSystemRepository {


    @Override
    public long countSystem(String name){
        LambdaQueryWrapper<AdminSystem> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(AdminSystem::getName,name);
        return this.count(lambdaQueryWrapper);
    }
}
